package di.bean;

public class Student {
    private Teacher teacher;

    public Student() {
    }

    public Student(Teacher teacher) {
        System.out.println("Student`s 构造器启动");
        this.teacher = teacher;
    }

    public Teacher getTeacher() {
        System.out.println("teacher.getName() = " + teacher.getName());
        return teacher;
    }

    public void setTeacher(Teacher teacher) {
        this.teacher = teacher;
    }
}
